花费 6 ms
Lintcode: Backpack

DP. boolean d[i][j]: For the first i items, can we fill a backpack of size j? true or false ...

Tue Feb 03 17:14:00 CST 2015 2 3299
Leetcode: Best Time to Buy and Sell Stock IV

这道题在Best Time to Buy and Sell Stock III做过,那道题只是把k取了2而已 递推式依然是 local[i][j]=max(global[i-1][j ...

Sun Mar 01 20:40:00 CST 2015 0 3181

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM